class Person:
    def __init__(self, name, weight):
        self.name = name
        self.weight =weight
    def run(self):
        self.weight -= 0.5
        print(f'{self.name}跑步后体重变为{self.weight}公斤')
    def eat(self):
        self.weight += 1
        print(f'{self.name}吃东西后，体重变为{self.weight}公斤')

xiaoming = Person("小明", 75.0)
xiaomei = Person("小美",45.0)

xiaoming.run()
xiaomei.run()

xiaoming.eat()